
#include <iostream>

#include "stack.h"

using std::cout;
using std::endl;


int main( void )
{
    Stack< int > intStack( 80 );

    int i = 0;
    while( intStack.push( i ) )
    {
        i = i + 5;
    }

    while( intStack.pop( i ) )
    {
        cout << i << " ";
    }

    cout << endl << endl;

    Stack< double > doubleStack( 80 );

    double j = 0.0;
    while( doubleStack.push( j ) )
    {
        j = j + 5.5;
    }

    while( doubleStack.pop( j ) )
    {
        cout << j << " ";
    }

    cout << endl;

	return 0;
}

